import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext

@Composable
fun BackHandlerExample() {
//    val context = LocalContext.current as MainActivity

//    var backPressedCount by remember { mutableStateOf(0) }
//    BackHandler(enabled = true, onBack = {
//        backPressedCount += 1
//    })
//    Text(text="Backbutton was pressed : $backPressedCount times")
//    if (context.backPressedCount>3){
//        Text(text="Backbutton was pressed : $context.backPressedCount times")
//    }
}
